import { defHttp } from '/@/utils/http/axios';

enum Api {
  list = '/entrust/labWsuperviseScheme/list',
  getAduitSign = '/entrust/labEntrust/byIdsa', // 获取初审、复审人员签名
  planIssuance = '/entrust/labWsuperviseScheme/issue',
}

/**
 * 列表接口
 * @param params
 */
export const list = (params) => defHttp.get({ url: Api.list, params });

/**
 * 获取初审、复审人员签名
 */
export const getAduitSign = (params) => defHttp.get({ url: Api.getAduitSign, params }, { isTransformResponse: false });

/**
 * 方案下发
 * @param params
 */
export const GetplanIssuance = (params) => {
  let url = Api.planIssuance;
  return defHttp.post({ url: url, params });
};
